# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit webapp eutils

DESCRIPTION="Websolution for Linux network traffic shaping and QoS with
iproute2."
HOMEPAGE="http://www.mastershaper.org/"
MY_PN="MasterShaper"
SRC_URI="http://www.mastershaper.org/${PN}_${PV}.tbz2"
S=${WORKDIR}/${MY_PN}_${PV}
IUSE=""
LICENSE="GPL-2"
KEYWORDS="~x86"
DEPEND=">=x11-libs/rote-0.2.8"
DOCS="README INSTALL"

src_install() {
	local docs="CHANGELOG LICENSE README"
	dodoc ${docs}

	webapp_src_preinst

	local wdocs="anyterm.html anyterm.css anyterm.js sarissa.js .htaccess"
	cd ../browser	
	cp ${wdocs} ${D}${MY_HTDOCSDIR}
	for y in ${wdocs} ; do
		cp ${y} ${D}${MY_HTDOCSDIR}
		webapp_serverowned ${MY_HTDOCSDIR}/${y}
	done

	webapp_src_install
}
	einfo "LoadModule anyterm /usr/lib/apache2-extramodules/anyterm.so"

